# ---------------------------------------------------------------------- #
# Copyright (c) 2024-2025 [XD-AMCC TEAM]
# [XD-AMCC] is licensed under Mulan PSL v2.
# You can use this software according to the terms and conditions of the Mulan PSL v2.
# You may obtain a copy of Mulan PSL v2 at:
#          http://license.coscl.org.cn/MulanPSL2
# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES
# OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
# TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
# See the Mulan PSL v2 for more details.
# ---------------------------------------------------------------------- #


#
# This file is included by ../CMakeLists.txt
#


include (../CMake.utils.txt)

# Initialized by the CFLAGS environment variable
if ( gcc STREQUAL  CMAKE_C_COMPILER )
    set(CMAKE_C_FLAGS "-Wno-unused-function -Wall")
    if (ENABLE_ASAN)
        message(STATUS "build with ASAN")
        set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fsanitize=address")
    endif ()
endif ()


set(LIB_AMCC    libamcc)

# core modules as a library
include_directories(../amcc-src/libamcc/include)


#tell following EXE, find library files from here:
link_directories(${LIBRARY_OUTPUT_DIRECTORY})


#
# Reserved for ...
#
